<%@ include file="public/include.jsp" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<link type="text/css" rel="stylesheet" href="styles/pub/default.css">
<tr>
	<td>
		<table>
			<caption>
				展会涉及的报检单
			</caption>
			<tr><td style="text-align:center;">
				<table class="list">
			        <tr class="title">
			          <td width="4%">序号</td>
			          <td>报检号</td>
			          <td>备案号</td>
			          <td>贸易国/地区</td>
			          <td width="35%">报检单位</td>
			          <td>报检日期</td>
			          <td>CIQ综合评定</td>
			        </tr>
					<c:forEach items="${map.allDecl}" varStatus="stat" var="decl">
				        <tr>
				          <td>${stat.count+map.page.seq}</td>
				          <td>${decl.declNo}</td>
				          <td>${decl.applyCode}</td>
				          <td><mytag:c2s key="${decl.tradeCountryCode}" type="country" /></td>
				          <td>${decl.entName}</td>
				          <td><fmt:formatDate value="${decl.declDate}" pattern="yyyy-MM-dd"/> </td>
				          <td><mytag:c2s type="testResult" key="${decl.colligateResult}"/></td>
					</c:forEach>
			    </table>
			</td></tr>
		</table>
	</td>
</tr>

<tr>
	<td>
		<table>
			<caption>
				报检单监管条件
			</caption>
			<tr><td style="text-align:center;">
				<table  class="bean" width="90%">
					<tr class="size">
					  <td width="15%"></td>
					  <td></td>
					</tr>
					<tr>
					  <td class="formLabel">涉及监管条件P的</td>
					  <td class="formValue">${map.inspectDeclMap["pList"]}</td>
					</tr>
					<tr>
					  <td class="formLabel">涉及监管条件Q的</td>
					  <td class="formValue">${map.inspectDeclMap["qList"]}</td>
					</tr>
					<tr>
					  <td class="formLabel">涉及监管条件R的</td>
					  <td class="formValue">${map.inspectDeclMap["rList"]}</td>
					</tr>
					<tr>
					  <td class="formLabel">涉及监管条件S的</td>
					  <td class="formValue">${map.inspectDeclMap["sList"]}</td>
					</tr>
					<tr>
					  <td class="formLabel">涉及监管条件M的</td>
					  <td class="formValue">${map.inspectDeclMap["mList"]}</td>
					</tr>
					<tr>
					  <td class="formLabel">涉及监管条件N的</td>
					  <td class="formValue">${map.inspectDeclMap["nList"]}</td>
					</tr>
					<tr>
					  <td class="formLabel">涉及监管条件L的</td>
					  <td class="formValue">${map.inspectDeclMap["lList"]}</td>
					</tr>
					<tr>
					  <td class="formLabel">不带监管条件的</td>
					  <td class="formValue">${map.inspectDeclMap["nonList"]}</td>
					</tr>
				</table>
			</td></tr>
		</table>
	</td>
</tr>


<tr>
	<td>
		<table>
			<caption>
				核销情况
			</caption>
			<tr><td style="text-align:center;">
				<table class="list">
			        <tr class="title">
			          <td width="3%">序号</td>
			          <td>报检号</td>
			          <td>货物名</td>
			          <td>监管类别</td>
			          <td>数/重量</td>
						<td>放弃</td>
						<td>赠送</td>
						<td>消耗</td>
						<td>销毁</td>
						<td>转关</td>
						<td>留购</td>
						<td>回运</td>
						<td>罚没</td>
						<td>遗失</td>
						<td>其他</td>			          
			          <td>报关单</td>
			          <td>通关单</td>
			          <td>备注</td>
			        </tr>
					
					<c:forEach items="${map.clearGoodsList}" varStatus="stat" var="goods">
						<c:set value="${goods.goodsClearItem}" var="clear" />
						<tr>
							<td>${stat.count}</td>
							<td>${goods.declNo}</td>
							<td>${goods.goodsCname}</td>
							<td>${goods.inspMonitorCond}</td>
							<td>${goods.qty}${goods.qtyUnitName}/${goods.weight}${goods.weightUnitCname}</td>
							<td>${clear.giveupCount}</td>
							<td>${clear.largessCount}</td>
							<td>${clear.consumeCount}</td>
							<td>${clear.destroyCount}</td>
							<td>${clear.transportCount}</td>
							<td>${clear.buyCount}</td>
							<td>${clear.returnCount}</td>
							<td>${clear.punishCount}</td>
							<td>${clear.loseCount}</td>
							<td>${clear.otherCount}</td>
							<td>${clear.declareNo}</td>
							<td>
								<c:forEach items="${clear.passageBills}" var="passage">
									<span style="padding-right:8px;">${passage.passageNo}</span>
								</c:forEach>
							</td>
							<td>
								<c:if test="${clear.balance!=null&&clear.balance!=0}">差值${clear.balance}</c:if>
							</td>
						</tr>
					</c:forEach>
				
				</table>			
			</td></tr>
		</table>
	</td>
</tr>